import request from '@/utils/request'

// 查询退款记录列表
export function listRefund_record(query) {
  return request({
    url: '/system/refund_record/list',
    method: 'get',
    params: query
  })
}

// 查询退款记录详细
export function getRefund_record(refundRecordId) {
  return request({
    url: '/system/refund_record/' + refundRecordId,
    method: 'get'
  })
}

// 新增退款记录
export function addRefund_record(data) {
  return request({
    url: '/system/refund_record',
    method: 'post',
    data: data
  })
}

// 修改退款记录
export function updateRefund_record(data) {
  return request({
    url: '/system/refund_record',
    method: 'put',
    data: data
  })
}

// 删除退款记录
export function delRefund_record(refundRecordId) {
  return request({
    url: '/system/refund_record/' + refundRecordId,
    method: 'delete'
  })
}
